package si.yun.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SyApplyRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SyApplyRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andPositionIsNull() {
            addCriterion("position is null");
            return (Criteria) this;
        }

        public Criteria andPositionIsNotNull() {
            addCriterion("position is not null");
            return (Criteria) this;
        }

        public Criteria andPositionEqualTo(String value) {
            addCriterion("position =", value, "position");
            return (Criteria) this;
        }

        public Criteria andPositionNotEqualTo(String value) {
            addCriterion("position <>", value, "position");
            return (Criteria) this;
        }

        public Criteria andPositionGreaterThan(String value) {
            addCriterion("position >", value, "position");
            return (Criteria) this;
        }

        public Criteria andPositionGreaterThanOrEqualTo(String value) {
            addCriterion("position >=", value, "position");
            return (Criteria) this;
        }

        public Criteria andPositionLessThan(String value) {
            addCriterion("position <", value, "position");
            return (Criteria) this;
        }

        public Criteria andPositionLessThanOrEqualTo(String value) {
            addCriterion("position <=", value, "position");
            return (Criteria) this;
        }

        public Criteria andPositionLike(String value) {
            addCriterion("position like", value, "position");
            return (Criteria) this;
        }

        public Criteria andPositionNotLike(String value) {
            addCriterion("position not like", value, "position");
            return (Criteria) this;
        }

        public Criteria andPositionIn(List<String> values) {
            addCriterion("position in", values, "position");
            return (Criteria) this;
        }

        public Criteria andPositionNotIn(List<String> values) {
            addCriterion("position not in", values, "position");
            return (Criteria) this;
        }

        public Criteria andPositionBetween(String value1, String value2) {
            addCriterion("position between", value1, value2, "position");
            return (Criteria) this;
        }

        public Criteria andPositionNotBetween(String value1, String value2) {
            addCriterion("position not between", value1, value2, "position");
            return (Criteria) this;
        }

        public Criteria andApplyDateIsNull() {
            addCriterion("apply_date is null");
            return (Criteria) this;
        }

        public Criteria andApplyDateIsNotNull() {
            addCriterion("apply_date is not null");
            return (Criteria) this;
        }

        public Criteria andApplyDateEqualTo(Date value) {
            addCriterion("apply_date =", value, "applyDate");
            return (Criteria) this;
        }

        public Criteria andApplyDateNotEqualTo(Date value) {
            addCriterion("apply_date <>", value, "applyDate");
            return (Criteria) this;
        }

        public Criteria andApplyDateGreaterThan(Date value) {
            addCriterion("apply_date >", value, "applyDate");
            return (Criteria) this;
        }

        public Criteria andApplyDateGreaterThanOrEqualTo(Date value) {
            addCriterion("apply_date >=", value, "applyDate");
            return (Criteria) this;
        }

        public Criteria andApplyDateLessThan(Date value) {
            addCriterion("apply_date <", value, "applyDate");
            return (Criteria) this;
        }

        public Criteria andApplyDateLessThanOrEqualTo(Date value) {
            addCriterion("apply_date <=", value, "applyDate");
            return (Criteria) this;
        }

        public Criteria andApplyDateIn(List<Date> values) {
            addCriterion("apply_date in", values, "applyDate");
            return (Criteria) this;
        }

        public Criteria andApplyDateNotIn(List<Date> values) {
            addCriterion("apply_date not in", values, "applyDate");
            return (Criteria) this;
        }

        public Criteria andApplyDateBetween(Date value1, Date value2) {
            addCriterion("apply_date between", value1, value2, "applyDate");
            return (Criteria) this;
        }

        public Criteria andApplyDateNotBetween(Date value1, Date value2) {
            addCriterion("apply_date not between", value1, value2, "applyDate");
            return (Criteria) this;
        }

        public Criteria andLaunchIdIsNull() {
            addCriterion("launch_id is null");
            return (Criteria) this;
        }

        public Criteria andLaunchIdIsNotNull() {
            addCriterion("launch_id is not null");
            return (Criteria) this;
        }

        public Criteria andLaunchIdEqualTo(Integer value) {
            addCriterion("launch_id =", value, "launchId");
            return (Criteria) this;
        }

        public Criteria andLaunchIdNotEqualTo(Integer value) {
            addCriterion("launch_id <>", value, "launchId");
            return (Criteria) this;
        }

        public Criteria andLaunchIdGreaterThan(Integer value) {
            addCriterion("launch_id >", value, "launchId");
            return (Criteria) this;
        }

        public Criteria andLaunchIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("launch_id >=", value, "launchId");
            return (Criteria) this;
        }

        public Criteria andLaunchIdLessThan(Integer value) {
            addCriterion("launch_id <", value, "launchId");
            return (Criteria) this;
        }

        public Criteria andLaunchIdLessThanOrEqualTo(Integer value) {
            addCriterion("launch_id <=", value, "launchId");
            return (Criteria) this;
        }

        public Criteria andLaunchIdIn(List<Integer> values) {
            addCriterion("launch_id in", values, "launchId");
            return (Criteria) this;
        }

        public Criteria andLaunchIdNotIn(List<Integer> values) {
            addCriterion("launch_id not in", values, "launchId");
            return (Criteria) this;
        }

        public Criteria andLaunchIdBetween(Integer value1, Integer value2) {
            addCriterion("launch_id between", value1, value2, "launchId");
            return (Criteria) this;
        }

        public Criteria andLaunchIdNotBetween(Integer value1, Integer value2) {
            addCriterion("launch_id not between", value1, value2, "launchId");
            return (Criteria) this;
        }

        public Criteria andImplementIdIsNull() {
            addCriterion("implement_id is null");
            return (Criteria) this;
        }

        public Criteria andImplementIdIsNotNull() {
            addCriterion("implement_id is not null");
            return (Criteria) this;
        }

        public Criteria andImplementIdEqualTo(Integer value) {
            addCriterion("implement_id =", value, "implementId");
            return (Criteria) this;
        }

        public Criteria andImplementIdNotEqualTo(Integer value) {
            addCriterion("implement_id <>", value, "implementId");
            return (Criteria) this;
        }

        public Criteria andImplementIdGreaterThan(Integer value) {
            addCriterion("implement_id >", value, "implementId");
            return (Criteria) this;
        }

        public Criteria andImplementIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("implement_id >=", value, "implementId");
            return (Criteria) this;
        }

        public Criteria andImplementIdLessThan(Integer value) {
            addCriterion("implement_id <", value, "implementId");
            return (Criteria) this;
        }

        public Criteria andImplementIdLessThanOrEqualTo(Integer value) {
            addCriterion("implement_id <=", value, "implementId");
            return (Criteria) this;
        }

        public Criteria andImplementIdIn(List<Integer> values) {
            addCriterion("implement_id in", values, "implementId");
            return (Criteria) this;
        }

        public Criteria andImplementIdNotIn(List<Integer> values) {
            addCriterion("implement_id not in", values, "implementId");
            return (Criteria) this;
        }

        public Criteria andImplementIdBetween(Integer value1, Integer value2) {
            addCriterion("implement_id between", value1, value2, "implementId");
            return (Criteria) this;
        }

        public Criteria andImplementIdNotBetween(Integer value1, Integer value2) {
            addCriterion("implement_id not between", value1, value2, "implementId");
            return (Criteria) this;
        }

        public Criteria andImplementDateIsNull() {
            addCriterion("implement_date is null");
            return (Criteria) this;
        }

        public Criteria andImplementDateIsNotNull() {
            addCriterion("implement_date is not null");
            return (Criteria) this;
        }

        public Criteria andImplementDateEqualTo(Date value) {
            addCriterion("implement_date =", value, "implementDate");
            return (Criteria) this;
        }

        public Criteria andImplementDateNotEqualTo(Date value) {
            addCriterion("implement_date <>", value, "implementDate");
            return (Criteria) this;
        }

        public Criteria andImplementDateGreaterThan(Date value) {
            addCriterion("implement_date >", value, "implementDate");
            return (Criteria) this;
        }

        public Criteria andImplementDateGreaterThanOrEqualTo(Date value) {
            addCriterion("implement_date >=", value, "implementDate");
            return (Criteria) this;
        }

        public Criteria andImplementDateLessThan(Date value) {
            addCriterion("implement_date <", value, "implementDate");
            return (Criteria) this;
        }

        public Criteria andImplementDateLessThanOrEqualTo(Date value) {
            addCriterion("implement_date <=", value, "implementDate");
            return (Criteria) this;
        }

        public Criteria andImplementDateIn(List<Date> values) {
            addCriterion("implement_date in", values, "implementDate");
            return (Criteria) this;
        }

        public Criteria andImplementDateNotIn(List<Date> values) {
            addCriterion("implement_date not in", values, "implementDate");
            return (Criteria) this;
        }

        public Criteria andImplementDateBetween(Date value1, Date value2) {
            addCriterion("implement_date between", value1, value2, "implementDate");
            return (Criteria) this;
        }

        public Criteria andImplementDateNotBetween(Date value1, Date value2) {
            addCriterion("implement_date not between", value1, value2, "implementDate");
            return (Criteria) this;
        }

        public Criteria andResultIsNull() {
            addCriterion("result is null");
            return (Criteria) this;
        }

        public Criteria andResultIsNotNull() {
            addCriterion("result is not null");
            return (Criteria) this;
        }

        public Criteria andResultEqualTo(String value) {
            addCriterion("result =", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultNotEqualTo(String value) {
            addCriterion("result <>", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultGreaterThan(String value) {
            addCriterion("result >", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultGreaterThanOrEqualTo(String value) {
            addCriterion("result >=", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultLessThan(String value) {
            addCriterion("result <", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultLessThanOrEqualTo(String value) {
            addCriterion("result <=", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultLike(String value) {
            addCriterion("result like", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultNotLike(String value) {
            addCriterion("result not like", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultIn(List<String> values) {
            addCriterion("result in", values, "result");
            return (Criteria) this;
        }

        public Criteria andResultNotIn(List<String> values) {
            addCriterion("result not in", values, "result");
            return (Criteria) this;
        }

        public Criteria andResultBetween(String value1, String value2) {
            addCriterion("result between", value1, value2, "result");
            return (Criteria) this;
        }

        public Criteria andResultNotBetween(String value1, String value2) {
            addCriterion("result not between", value1, value2, "result");
            return (Criteria) this;
        }

        public Criteria andRemarksIsNull() {
            addCriterion("remarks is null");
            return (Criteria) this;
        }

        public Criteria andRemarksIsNotNull() {
            addCriterion("remarks is not null");
            return (Criteria) this;
        }

        public Criteria andRemarksEqualTo(String value) {
            addCriterion("remarks =", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotEqualTo(String value) {
            addCriterion("remarks <>", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksGreaterThan(String value) {
            addCriterion("remarks >", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksGreaterThanOrEqualTo(String value) {
            addCriterion("remarks >=", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLessThan(String value) {
            addCriterion("remarks <", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLessThanOrEqualTo(String value) {
            addCriterion("remarks <=", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLike(String value) {
            addCriterion("remarks like", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotLike(String value) {
            addCriterion("remarks not like", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksIn(List<String> values) {
            addCriterion("remarks in", values, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotIn(List<String> values) {
            addCriterion("remarks not in", values, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksBetween(String value1, String value2) {
            addCriterion("remarks between", value1, value2, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotBetween(String value1, String value2) {
            addCriterion("remarks not between", value1, value2, "remarks");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}